<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

/**
 * MainLib Class
 *
 * @package		CodeIgniter
 * @subpackage	Libraries
 * @category	
 * @author		
 * @link		
 */


class CI_Main_lib {

	public 		$_lang;
	
	public     	$_meniuView;
	
	private 	$CI;
	
	
	function __construct()
	{
		
		log_message('debug', "CI_MainLib Class Initialized");
		
		$this->CI = & get_instance();
		
		$this->_lang = 'lt';
		
		$this->_meniuView = "Page/mainMeniu";
	}

	
	public function getUrl(){
		
		$url = '';
		
		foreach (func_get_args() as $value) {
			$url .= '/'.$value;
		}
		
		return base_url().$this->_lang.$url;
		
	}
	
	public function setError($err, $tipas = 'e'){
		
		$this->CI->session->set_flashdata('Error', $err);
		
	}
	
}
// END   Class
